var db = require('mongoose');
var dbconfig = require('../config/db')

db.connect('mongodb://'+ dbconfig.ADDRESS +':'+ dbconfig.PORT + '/basicdoc',{user:dbconfig.USER,pass:dbconfig.PASS,useNewUrlParser: true})
var conn = db.connection;

module.exports = {
    conn
}